package com.vito.framework.system.role.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.vito.framework.system.menu.model.MenuBean;
import com.vito.framework.system.role.model.RoleBean;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface RoleMapper extends BaseMapper<RoleBean> {

	List<MenuBean> getRoleMenuForAddList(Map<String, Object> paramMap);

	List<MenuBean> getMenuByRole(Map<String, Object> paramMap);

	List<RoleBean> getRoleList(Map<String, Object> paramMap);

	void deleteRoleMenu(Map<String, Object> paramMap);

	void deleteRoleUser(Map<String, Object> paramMap);

	void deleteRoleMenubyId(@Param("roleId") String roleId);

	void insertRoleMenu(List<MenuBean> menuSet);
}
